import { CHANGE_IPT,CHANGE_ITEM,SET_LIST } from './actionType'
const defaultVal = {
    iptVal:"",
    list:[
        "早上八点打卡上班",
        "开始学习redux-saga"
    ]
}
export default (state = defaultVal ,action)=>{
    let newState = state;
    if(action.type === CHANGE_IPT){
        newState.iptVal = action.value
    }else if(action.type === CHANGE_ITEM){
        newState.list= action.value
    }else if(action.type === SET_LIST){
        
    }
    return newState
}